package cn.lym.zxxx.redis;

import java.util.List;
import java.util.Map;


public interface RedisClient {

    public String set(byte[] key, byte[] value);

    public byte[] get(byte[] key);

    public Long del(String key);

    public Long del(byte[] key);

    public Boolean exists(String key);

    public Boolean exists(byte[] key);

    public Boolean hexists(byte[] key, byte[] filed);

    public Long hset(byte[] key, byte[] field, byte[] value);

    public Long hset(byte[] key, byte[] field, byte[] value, int expire);

    public Object hget(byte[] key, byte[] field);

    public Object hget(byte[] key, byte[] field, int expire);

    public String hmset(byte[] key, Map<byte[], byte[]> map);

    public String hmset(byte[] key, Map<byte[], byte[]> map, int expire);

    public List<Object> hmget(byte[] key, int expire, byte[]... fields);

    public Long hdel(byte[] key, byte[]... field);

    public Long hset(String key, String field, String value);

    public Long hset(String key, String field, String value, int expire);

    public String hget(String key, String field);

    public String hget(String key, String field, int expire);

    public String hmset(String key, Map<String, String> map);

    public String hmset(String key, Map<String, String> map, int expire);

    public Long hdel(String key, String... field);
}
